<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;

        }

        html,
        body {
            width: 100%;
            height: 100%;
        }

        body {
            background-color: pink;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
        }

        .heart {
            width: 300px;
            height: 300px;
            background-color: red;
            position: relative;
            transform: rotate(45deg);
            animation: heartbit 1s alternate infinite;
            box-shadow: 0 0 100px red;

        }

        div:hover {
            animation-play-state: paused;
        }

        .heart::before {
            content: "";
            width: 300px;
            height: 150px;
            background-color: red;
            position: absolute;
            left: 0;
            top: -149px;
            border-radius: 150px 150px 0px 0px;
            box-shadow: 0 0 100px red;

        }

        .heart::after {
            content: "";
            width: 150px;
            height: 300px;
            background-color: red;
            position: absolute;
            left: -149px;
            top: 0px;
            border-radius: 150px 0px 0px 150px;
            box-shadow: 0 0 100px red;

        }

        @keyframes heartbit {
            0% {
                transform: rotate(45deg) scale(0.6);
            }

            100% {
                transform: rotate(45deg) scale(1.4);
            }
        }
        p{
            font-weight: 700;
            font-style: italic;
            font-family: monospace;
            font-size: 40px;
            color: red;
            
            
        }
    </style>
</head>

<body>
    <div class="heart"></div>
    <p>表白xxx 我对你心动了</p>
</body>

</html>